/** Overide for RTL layout **/

.dir-rtl .block .header .block_action {
    float:left;
}
.dir-rtl .block .header .commands {
    text-align: right;
}
.dir-rtl .block .header .title h2 {
    margin-right: 10px;
}
.dir-rtl .course_category_tree .category > .header .name {
    padding-left: 0;
    padding-right: 20px;
}
.dir-rtl .coursebox .summary {
    float: right;
}
.dir-rtl a.logo {
    background-position: 100% 0;
    float: right;
    left: auto;
    right: 10px;
}
.dir-rtl .headermenu {
    float: left;
    clear: left;
    right: auto;
    left: 0;
}
.dir-rtl .headermenu .langmenu {
    clear: left;
    float: left;
    margin-left: 0;
}
.dir-rtl .langmenu select.select.menulang {
    margin-left: 0;
}
.dir-rtl .loginbox .loginform .form-label {
    width: 46%;
}
.dir-rtl #navcontainer {
    clear: both;
}

/* RTL Docking Module
--------------------*/

.dir-rtl #dock {
    top: 0;
    left: auto;
    right: 0;
}
.dir-rtl #dock .dockeditem.firstdockitem {
    margin-top: 2.3em;
    -webkit-border-top-left-radius: 6px;
    -moz-border-radius-topleft: 6px;
    border-top-left-radius: 6px;
}
.dir-rtl #dock .dockedtitle {
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    -webkit-border-top-right-radius: 0;
    -moz-border-radius-topright: 0;
    border-top-right-radius: 0;
    -webkit-border-bottom-right-radius: 0;
    -moz-border-radius-bottomright: 0;
    border-bottom-right-radius: 0;
}
.dir-rtl #dock .dockedtitle.activeitem {
    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;
}
.dir-rtl #dock .controls {
    -webkit-border-bottom-left-radius: 6px;
    -moz-border-radius-bottomleft: 6px;
    border-bottom-left-radius: 6px;
}
.dir-rtl #dock .controls img {
    margin-right: 10px;
}
/*
Docked Item Panel
-----------------------*/
.dir-rtl #dockeditempanel {
    right: 100%;
}
.dir-rtl #dockeditempanel .dockeditempanel_content {
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    border-radius: 6px;
    -webkit-border-top-right-radius: 0;
    -moz-border-radius-topright: 0;
    border-top-right-radius: 0;
}
.dir-rtl.has_dock.side-post-only  #region-main {
    margin-left: 0;
}
/* @media Responsive styles
-------------------------*/

@media screen and (min-width: 768px) {
/* right align CUSTOMMENU
-------------------------*/
    .dir-rtl #custommenu ul.dropdown {
        float: right;
    }
    .dir-rtl #custommenu ul.dropdown ul{
        right: 0;
        left: auto;
    }
    .dir-rtl #custommenu ul.dropdown ul ul {
        right: 203px;
        left: auto;
    }
    .dir-rtl #custommenu ul.dropdown ul span,
    .dir-rtl #custommenu ul.dropdown ul span a,
    .dir-rtl #custommenu ul.dropdown ul li.clickable-with-children > a {
        background-image: url([[pix:theme|menu/nav-arrow-left]]);
        background-position: 0 50%;
        background-repeat: no-repeat;
    }
    .dir-rtl #custommenu ul.dropdown ul li:hover > span,
    .dir-rtl #custommenu ul.dropdown ul li:hover > span a {
        background-color: #fff;
        background-image: url([[pix:theme|menu/nav-arrowover-left]]);
        color: #036;
    }
    .dir-rtl #custommenu ul.dropdown li.clickable-with-children:hover > a {
        background-image: url([[pix:theme|menu/nav-arrowover-left]]);
    }
}
@media screen and (orientation:portrait) and (min-width: 768px) and (max-width: 799px) {
    /* Page Layout
    -------------------------*/
    body.has_dock {
        margin-right: 3%;
        width: 97%;
    }
}
@media screen and (max-width: 767px) {
    /* Page Layout
    -------------------------*/
    body.has_dock {
        margin-right: 3%;
        width: 97%;
    }
}